package main

import "fmt"

type Person struct {
	name  string
	age   int
	score float64
}

// Eat 在类外面绑定方法
func (p *Person) eat() {
	fmt.Println(p.name + "eat")
}
func main() {
	zs := Person{
		name:  "zs",
		age:   12,
		score: 100,
	}
	zs.eat()

}
